package com.erp.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "sys_permission")
public class Permission implements Serializable {

//    @TableField(exist = false)
//    private static final long serialVersionUID = 1L;
//
//    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer pid;    //父级编号
    private String type;    //权限    菜单
    private String percode;
    private String icon;
    private String href;
    private String target;
    private String title;
    private int open;
    private int ordernum;
    private int available;
//    private Date createtime;
//
//
//
//    @TableField(exist = false)
//    private String p_title;     //父级名称


}
